import axios from '@/api/fetch';
// import * as types from './types';
import SERVER from '@/api/server';

// 查询活动回访分派信息
export const getActivityVisitInfo = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/customerCare/activityVisit/getActivityVisitInfo`, { params });

// 查询活动回访录入信息
export const getVisitInfo = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customerCare/activityVisitResult/getActivityEntryVisitResultNew`, { params });

// 查询活动回访结果信息
export const getVisitResultQuery = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customerCare/activityVisitResult/getActivityVisitResultQuery`, { params });

// 问卷名称下拉框
export const getQuestionnaireList = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customerCare/entryVisitResult/getQuestionnaireList`, { params });

// 操作员、录入人(售前提供的接口)
export const getAllUser = params => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/basedata/users/getDealerUser`);

// 活动回访-任务分派
export const taskAssignment = params => axios.post(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customerCare/entryVisitResult/taskAssignment`, params);
// 查询车辆选择框
export const searchVehicle = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/order/repair/searchVehicleSelect`, { params });
// 销售回访导出
export const exportSaleVisit = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customerCare/activityVisitResult/exportSaleVisit`, { params, responseType: 'arraybuffer' });
//  售后回访导出
export const exportServerVisit = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customerCare/activityVisitResult/exportServerVisit`, { params, responseType: 'arraybuffer' });
// 其他回访导出
export const exportVisitInfo = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/customerCare/activityVisitResult/export/excal`, { params, responseType: 'arraybuffer' });

